package com.GenericityInterface;

public class Demo01 {
    public static void main(String[] args) {
        GenercityImpl1<String> genericity=new GenercityImpl1<>();
        genericity.method("我是小明");

    }

}
interface Genercity<E>{
    public abstract void method(E e);
}
class GenercityImpl1<E> implements Genercity<E>{

    @Override
    public void method(E e) {
        System.out.println(e);
    }
}